#include<iostream>
#include<string>
using namespace std;
string a[10]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
int main(){
    string s;
    int num=0,b[20],n;
    getline(cin,s);
    for (int i = 0; i < s.size(); i++)
    {
        num+=s[i]-'0';
    }
    for(n=0;num>=10;){
        b[n]=num%10;
        num=num/10;
        n++;
    }
    b[n]=num;
    for(int i=n;i>=0;i--){
        cout<<a[b[i]];
        if(i!=0) cout<<" ";
    }
    
}